import request from '@/utils/request'

// 查询自动结案时间列表
export function listSom_ja(query) {
  return request({
    url: '/marketing/som_ja/list',
    method: 'get',
    params: query
  })
}

// 查询自动结案时间详细
export function getSom_ja(jaId) {
  return request({
    url: '/marketing/som_ja/' + jaId,
    method: 'get'
  })
}

// 新增自动结案时间
export function addSom_ja(data) {
  return request({
    url: '/marketing/som_ja',
    method: 'post',
    data: data
  })
}

// 修改自动结案时间
export function updateSom_ja(data) {
  return request({
    url: '/marketing/som_ja',
    method: 'put',
    data: data
  })
}

// 删除自动结案时间
export function delSom_ja(jaId) {
  return request({
    url: '/marketing/som_ja/' + jaId,
    method: 'delete'
  })
}

// 导出自动结案时间
export function exportSom_ja(query) {
  return request({
    url: '/marketing/som_ja/export',
    method: 'get',
    params: query
  })
}